/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package PhuocPH;

import Entity.Category;
import Entity.Comment;
import Entity.FeedBack;
import javax.ejb.Local;

/**
 *
 * @author dukynguyen
 */
@Local
public interface PhuocPHSessionBeanLocal {

    boolean InsertCategory(String CaName);

    boolean DeleteCategory(int CaID);

    boolean UpdateCategory(int CaID, String CaName);

    Entity.Category[] GetCategory();

    Category findCategoryByPK(int CaID);

    boolean SendFB(String username, String title, String content);

    boolean ReplyFB(int id, String reply);

    FeedBack findFeedBackByPK(int id);

    Entity.FeedBack[] getFeedBack();

    AccountFeedBackDTO findFeedBackByAccount(String username);

    boolean sendComment(int evID, String user, String content);

    boolean disableComment(int id);

    boolean enableComment(int id);

    EventCommentsDTO CommentsOfEvent(int id);

    Entity.Comment[] getComment();

    Comment findCommentByPK(int id);
    
    public AccountCommentDTO findCommentByAccount(String user);
    
}
